{strip}
<div class="content_spacing">
	<h2>{$smarty.config.ContentClasses_headline}</h2>
	<br />
	{$smarty.config.ContentClasses_description}
	<br /><br />
	<form action="" id="ContentEditorClassesForm_{$obj.obj_id}">
		<input type="hidden" name="obj_id" id="obj_id" value="{$obj.obj_id}" />
		<table class="tableList" cellpadding="2" cellspacing="1" border="0" width="100%">
			<tr>
				<th>
					{$smarty.config.ContentClasses_class_name}
				</th>
				<th>
					{$smarty.config.ContentClasses_class_visibility}
				</th>
			</tr>
			{foreach name="classloop" from=$classes item=class}
				<tr>
					{if $bgcolor == ""}
						{assign var="bgcolor" value="tablerow_color"}					
					{else}
						{assign var="bgcolor" value=""}					
					{/if}
					
					<td class="{$bgcolor}" valign="top">{$class.class_name|stripslashes|htmlentities}</td>
					<td class="{$bgcolor}" valign="top"><input type="checkbox" name="class[]" value="{$class.class_id}" {if $class.obj_index_class_key_class_id != "" OR  $class.class_2_class_visible==1 }checked="checked"{/if} {if $class.class_2_class_visible}disabled="disabled"{/if} /></td>
				</tr>
			{/foreach}
		</table>
	{*
					<div style="border-top:1px solid #CCC">
						<input type="checkbox" name="apply_linked" value="1" id="apply_linked"> Diese Einstellungen auf verlinkte Objekte übertragen.<br />
					</div>
	`*}
		<br />
		<input type="button" name="submit" value="{$smarty.config.ContentClasses_submitbutton}" class="submitbtn" onclick="{strip}{literal}
		xajax.request(
		{
			ccdsfun:'ContentEditorPermissionsClassesSave',
			ccdsclass:'ccdsContentEditor'
		}, {
			parameters:[					
			{/literal}xajax.getFormValues('ContentEditorClassesForm_{$obj.obj_id}'){literal}
			]
		}
		);
		{/literal}{/strip}" />
	
	</form>
</div>
{/strip}